<?
if (is_null ($field->getValue ()) || (is_numeric ($field->getValue ()) && (int) $field->getValue () === 0))
	return "NULL";

return "'". $field->getValue () ."'";
?>